package structural.adapter;

public class Adapter implements V5Power {
    private int v220;

    @Override
    public int power() {
        System.out.println("假装中间有操作转换了220-5v");
        return 5;
    }

    public Adapter(V220Power v220Power) {
        v220 = v220Power.power();
    }
}
